function(http_layer_find_gtest)
	if (TARGET http_layer_gtest_internal)
		return()
	endif ()

	set(GTEST_ROOT ${HTTPLAYER_3RD_OUTDIR}/googletest-1.15.2/${CMAKE_BUILD_TYPE})
	find_package(GTest REQUIRED)

	add_library(http_layer_gtest_internal INTERFACE)
	target_include_directories(http_layer_gtest_internal INTERFACE "$<BUILD_INTERFACE:${GTEST_INCLUDE_DIRS}>")
	target_link_libraries(http_layer_gtest_internal INTERFACE
		GTest::gtest
		GTest::gmock
		GTest::gtest_main
	)
endfunction()